package com.wangxianseng;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.net.MalformedURLException;
import java.net.URL;

@SpringBootApplication
@EnableScheduling
public class Application {

    public static void main(String[] args) { SpringApplication.run(Application.class, args);
        System.out.println("==========================");
        System.out.println("WRX的程序启动成功~");
        try {
            URL url = new URL("http://localhost:8088");
            System.out.println("请访问首页地址  "+url);
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        System.out.println("==========================");
    }

    @Bean
    CommandLineRunner init() {
        return (args) -> {};
    }
}
